package com.example.mybatisplusservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplusservice.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.scheduling.annotation.Async;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    @Async
    List<User> selectByUserId(@Param("userId") Integer userId);


    IPage<User> selectByUserIdDetail(IPage<User> page, @Param("childrenId") Integer childrenId);
}